<?php

require '../init.inc.php';

$name = 'Fyr';
if (isset($_GET['n'])):
        $name = urldecode($_GET['n']);
endif;

$realm = 'Die Aldor';
if (isset($_GET['r'])):
        $realm = urldecode($_GET['r']);
endif;

$guild = 'Stab und Schwert';
if (isset($_GET['g'])):
        $guild = urldecode($_GET['g']);
endif;

$type = 'profile';
if (isset($_GET['t'])):
        $type = urldecode($_GET['t']);
endif;

$api  = new ArmoryAPITest($realm, $guild, $name, $type);
$data = $api->parseData();

Util::debug($data); 

?>